﻿using AjaxControlToolkit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DentScan2.WebApp.Classes
{
    public class BaseUserControl : System.Web.UI.UserControl
    {
        protected void SetProperFilter(FilteredTextBoxExtender fte)
        {
            if (!(this.Page as Classes.BaseForm).AreaId.HasValue)
                return;
            switch ((this.Page as Classes.BaseForm).AreaId.Value.ToString().ToUpper())
            {
                case Classes.Constants.FranceAreaId: fte.ValidChars = Classes.Constants.FranceValidChars; break;
                case Classes.Constants.BulgariaAreaId: fte.ValidChars = Classes.Constants.BulgariaValidChars; break;
            }
        }
    }


    
}